package com.example.api2interface.entity;

/**
 * 返回代码枚举类
 */
public enum ReturnCode {
    ILLEGAL_HEADER("请求头错误","400"),
    REPLAY_ERROR("重放错误","401"),
    OVERTIME_ERROR("签名过期", "402"),
    ARGUMENT_ERROR("验签失败","403");

    private String message;
    private String code;

    ReturnCode(String message, String code) {
        this.message = message;
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public String getCode() {
        return code;
    }
}
